Integrand size = 33, antiderivative size = 191 \[ \int \frac {\cos ^4(c+d x) \left (A+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx=\frac {(28 A+55 C) x}{8 a^2}-\frac {8 (A+2 C) \sin (c+d x)}{a^2 d}+\frac {(28 A+55 C) \cos (c+d x) \sin (c+d x)}{8 a^2 d}+\frac {(28 A+55 C) \cos ^3(c+d x) \sin (c+d x)}{12 a^2 d}-\frac {2 (A+2 C) \cos ^4(c+d x) \sin (c+d x)}{a^2 d (1+\cos (c+d x))}-\frac {(A+C) \cos ^5(c+d x) \sin (c+d x)}{3 d (a+a \cos (c+d x))^2}+\frac {8 (A+2 C) \sin ^3(c+d x)}{3 a^2 d} \]
1/8*(28*A+55*C)*x/a^2-8*(A+2*C)*sin(d*x+c)/a^2/d+1/8*(28*A+55*C)*cos(d*x+c )*sin(d*x+c)/a^2/d+1/12*(28*A+55*C)*cos(d*x+c)^3*sin(d*x+c)/a^2/d-2*(A+2*C )*cos(d*x+c)^4*sin(d*x+c)/a^2/d/(1+cos(d*x+c))-1/3*(A+C)*cos(d*x+c)^5*sin( d*x+c)/d/(a+a*cos(d*x+c))^2+8/3*(A+2*C)*sin(d*x+c)^3/a^2/d
Leaf count is larger than twice the leaf count of optimal. \(399\) vs. \(2(191)=382\).
Time = 2.09 (sec) , antiderivative size = 399, normalized size of antiderivative = 2.09 \[ \int \frac {\cos ^4(c+d x) \left (A+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx=\frac {\cos \left (\frac {1}{2} (c+d x)\right ) \sec \left (\frac {c}{2}\right ) \left (72 (28 A+55 C) d x \cos \left (\frac {d x}{2}\right )+72 (28 A+55 C) d x \cos \left (c+\frac {d x}{2}\right )+672 A d x \cos \left (c+\frac {3 d x}{2}\right )+1320 C d x \cos \left (c+\frac {3 d x}{2}\right )+672 A d x \cos \left (2 c+\frac {3 d x}{2}\right )+1320 C d x \cos \left (2 c+\frac {3 d x}{2}\right )-3048 A \sin \left (\frac {d x}{2}\right )-5184 C \sin \left (\frac {d x}{2}\right )+1176 A \sin \left (c+\frac {d x}{2}\right )+1344 C \sin \left (c+\frac {d x}{2}\right )-1912 A \sin \left (c+\frac {3 d x}{2}\right )-3488 C \sin \left (c+\frac {3 d x}{2}\right )-504 A \sin \left (2 c+\frac {3 d x}{2}\right )-1312 C \sin \left (2 c+\frac {3 d x}{2}\right )-120 A \sin \left (2 c+\frac {5 d x}{2}\right )-285 C \sin \left (2 c+\frac {5 d x}{2}\right )-120 A \sin \left (3 c+\frac {5 d x}{2}\right )-285 C \sin \left (3 c+\frac {5 d x}{2}\right )+24 A \sin \left (3 c+\frac {7 d x}{2}\right )+57 C \sin \left (3 c+\frac {7 d x}{2}\right )+24 A \sin \left (4 c+\frac {7 d x}{2}\right )+57 C \sin \left (4 c+\frac {7 d x}{2}\right )-7 C \sin \left (4 c+\frac {9 d x}{2}\right )-7 C \sin \left (5 c+\frac {9 d x}{2}\right )+3 C \sin \left (5 c+\frac {11 d x}{2}\right )+3 C \sin \left (6 c+\frac {11 d x}{2}\right )\right )}{384 a^2 d (1+\cos (c+d x))^2} \]
(Cos[(c + d*x)/2]*Sec[c/2]*(72*(28*A + 55*C)*d*x*Cos[(d*x)/2] + 72*(28*A + 55*C)*d*x*Cos[c + (d*x)/2] + 672*A*d*x*Cos[c + (3*d*x)/2] + 1320*C*d*x*Co s[c + (3*d*x)/2] + 672*A*d*x*Cos[2*c + (3*d*x)/2] + 1320*C*d*x*Cos[2*c + ( 3*d*x)/2] - 3048*A*Sin[(d*x)/2] - 5184*C*Sin[(d*x)/2] + 1176*A*Sin[c + (d* x)/2] + 1344*C*Sin[c + (d*x)/2] - 1912*A*Sin[c + (3*d*x)/2] - 3488*C*Sin[c + (3*d*x)/2] - 504*A*Sin[2*c + (3*d*x)/2] - 1312*C*Sin[2*c + (3*d*x)/2] - 120*A*Sin[2*c + (5*d*x)/2] - 285*C*Sin[2*c + (5*d*x)/2] - 120*A*Sin[3*c + (5*d*x)/2] - 285*C*Sin[3*c + (5*d*x)/2] + 24*A*Sin[3*c + (7*d*x)/2] + 57* C*Sin[3*c + (7*d*x)/2] + 24*A*Sin[4*c + (7*d*x)/2] + 57*C*Sin[4*c + (7*d*x )/2] - 7*C*Sin[4*c + (9*d*x)/2] - 7*C*Sin[5*c + (9*d*x)/2] + 3*C*Sin[5*c + (11*d*x)/2] + 3*C*Sin[6*c + (11*d*x)/2]))/(384*a^2*d*(1 + Cos[c + d*x])^2 )
Time = 0.96 (sec) , antiderivative size = 181, normalized size of antiderivative = 0.95, number of steps used = 15, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.424, Rules used = {3042, 3521, 25, 3042, 3456, 3042, 3227, 3042, 3113, 2009, 3115, 3042, 3115, 24}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\cos ^4(c+d x) \left (A+C \cos ^2(c+d x)\right )}{(a \cos (c+d x)+a)^2} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\sin \left (c+d x+\frac {\pi }{2}\right )^4 \left (A+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )}{\left (a \sin \left (c+d x+\frac {\pi }{2}\right )+a\right )^2}dx\) |
\(\Big \downarrow \) 3521 |
\(\displaystyle \frac {\int -\frac {\cos ^4(c+d x) (a (2 A+5 C)-a (4 A+7 C) \cos (c+d x))}{\cos (c+d x) a+a}dx}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\int \frac {\cos ^4(c+d x) (a (2 A+5 C)-a (4 A+7 C) \cos (c+d x))}{\cos (c+d x) a+a}dx}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\int \frac {\sin \left (c+d x+\frac {\pi }{2}\right )^4 \left (a (2 A+5 C)-a (4 A+7 C) \sin \left (c+d x+\frac {\pi }{2}\right )\right )}{\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}dx}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3456 |
\(\displaystyle -\frac {\frac {\int \cos ^3(c+d x) \left (24 a^2 (A+2 C)-a^2 (28 A+55 C) \cos (c+d x)\right )dx}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\frac {\int \sin \left (c+d x+\frac {\pi }{2}\right )^3 \left (24 a^2 (A+2 C)-a^2 (28 A+55 C) \sin \left (c+d x+\frac {\pi }{2}\right )\right )dx}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3227 |
\(\displaystyle -\frac {\frac {24 a^2 (A+2 C) \int \cos ^3(c+d x)dx-a^2 (28 A+55 C) \int \cos ^4(c+d x)dx}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\frac {24 a^2 (A+2 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^3dx-a^2 (28 A+55 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3113 |
\(\displaystyle -\frac {\frac {-\frac {24 a^2 (A+2 C) \int \left (1-\sin ^2(c+d x)\right )d(-\sin (c+d x))}{d}-\left (a^2 (28 A+55 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx\right )}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {\frac {-a^2 (28 A+55 C) \int \sin \left (c+d x+\frac {\pi }{2}\right )^4dx-\frac {24 a^2 (A+2 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle -\frac {\frac {-a^2 (28 A+55 C) \left (\frac {3}{4} \int \cos ^2(c+d x)dx+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {24 a^2 (A+2 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -\frac {\frac {-a^2 (28 A+55 C) \left (\frac {3}{4} \int \sin \left (c+d x+\frac {\pi }{2}\right )^2dx+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {24 a^2 (A+2 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 3115 |
\(\displaystyle -\frac {\frac {-a^2 (28 A+55 C) \left (\frac {3}{4} \left (\frac {\int 1dx}{2}+\frac {\sin (c+d x) \cos (c+d x)}{2 d}\right )+\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}\right )-\frac {24 a^2 (A+2 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
\(\Big \downarrow \) 24 |
\(\displaystyle -\frac {\frac {-\frac {24 a^2 (A+2 C) \left (\frac {1}{3} \sin ^3(c+d x)-\sin (c+d x)\right )}{d}-a^2 (28 A+55 C) \left (\frac {\sin (c+d x) \cos ^3(c+d x)}{4 d}+\frac {3}{4} \left (\frac {\sin (c+d x) \cos (c+d x)}{2 d}+\frac {x}{2}\right )\right )}{a^2}+\frac {6 (A+2 C) \sin (c+d x) \cos ^4(c+d x)}{d (\cos (c+d x)+1)}}{3 a^2}-\frac {(A+C) \sin (c+d x) \cos ^5(c+d x)}{3 d (a \cos (c+d x)+a)^2}\) |
-1/3*((A + C)*Cos[c + d*x]^5*Sin[c + d*x])/(d*(a + a*Cos[c + d*x])^2) - (( 6*(A + 2*C)*Cos[c + d*x]^4*Sin[c + d*x])/(d*(1 + Cos[c + d*x])) + ((-24*a^ 2*(A + 2*C)*(-Sin[c + d*x] + Sin[c + d*x]^3/3))/d - a^2*(28*A + 55*C)*((Co s[c + d*x]^3*Sin[c + d*x])/(4*d) + (3*(x/2 + (Cos[c + d*x]*Sin[c + d*x])/( 2*d)))/4))/a^2)/(3*a^2)
3.1.47.3.1 Defintions of rubi rules used
Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Simp[-d^(-1) Subst[Int[Exp and[(1 - x^2)^((n - 1)/2), x], x], x, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Sin[c + d*x])^(n - 1)/(d*n)), x] + Simp[b^2*((n - 1)/n) Int[(b*Sin [c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[ 2*n]
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x _)]), x_Symbol] :> Simp[c Int[(b*Sin[e + f*x])^m, x], x] + Simp[d/b Int [(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim p[(A*b - a*B)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^n/( a*f*(2*m + 1))), x] - Simp[1/(a*b*(2*m + 1)) Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^(n - 1)*Simp[A*(a*d*n - b*c*(m + 1)) - B*(a*c*m + b*d*n) - d*(a*B*(m - n) + A*b*(m + n + 1))*Sin[e + f*x], x], x], x] /; Fre eQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] & & NeQ[c^2 - d^2, 0] && LtQ[m, -2^(-1)] && GtQ[n, 0] && IntegerQ[2*m] && (In tegerQ[2*n] || EqQ[c, 0])
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[a*(A + C)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(f*(b*c - a*d)*(2*m + 1))), x] + Simp[1/(b*(b*c - a*d)*(2*m + 1)) I nt[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*Simp[A*(a*c*(m + 1) - b*d*(2*m + n + 2)) - C*(a*c*m + b*d*(n + 1)) + (a*A*d*(m + n + 2) + C*(b* c*(2*m + 1) - a*d*(m - n - 1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, C, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ[m, -2^(-1)]
Time = 2.26 (sec) , antiderivative size = 120, normalized size of antiderivative = 0.63
method | result | size |
parallelrisch | \(\frac {-163 \left (\frac {\left (12 A +29 C \right ) \cos \left (2 d x +2 c \right )}{163}+\frac {\left (-3 A -\frac {53 C}{8}\right ) \cos \left (3 d x +3 c \right )}{163}+\frac {C \cos \left (4 d x +4 c \right )}{326}-\frac {3 C \cos \left (5 d x +5 c \right )}{1304}+\left (A +\frac {329 C}{163}\right ) \cos \left (d x +c \right )+\frac {140 A}{163}+\frac {569 C}{326}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sec ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+168 x \left (A +\frac {55 C}{28}\right ) d}{48 a^{2} d}\) | \(120\) |
derivativedivides | \(\frac {\frac {\left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{3}+\frac {\left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) C}{3}-7 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-11 \tan \left (\frac {d x}{2}+\frac {c}{2}\right ) C +\frac {4 \left (-\frac {5 A}{2}-\frac {65 C}{8}\right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 \left (-\frac {13 A}{2}-\frac {395 C}{24}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 \left (-\frac {11 A}{2}-\frac {341 C}{24}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 \left (-\frac {3 A}{2}-\frac {31 C}{8}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {\left (28 A +55 C \right ) \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}}{2 d \,a^{2}}\) | \(173\) |
default | \(\frac {\frac {\left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{3}+\frac {\left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) C}{3}-7 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-11 \tan \left (\frac {d x}{2}+\frac {c}{2}\right ) C +\frac {4 \left (-\frac {5 A}{2}-\frac {65 C}{8}\right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 \left (-\frac {13 A}{2}-\frac {395 C}{24}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 \left (-\frac {11 A}{2}-\frac {341 C}{24}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 \left (-\frac {3 A}{2}-\frac {31 C}{8}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{4}}+\frac {\left (28 A +55 C \right ) \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}}{2 d \,a^{2}}\) | \(173\) |
risch | \(\frac {7 x A}{2 a^{2}}+\frac {55 C x}{8 a^{2}}-\frac {i {\mathrm e}^{2 i \left (d x +c \right )} A}{8 a^{2} d}-\frac {i {\mathrm e}^{2 i \left (d x +c \right )} C}{2 a^{2} d}+\frac {i {\mathrm e}^{i \left (d x +c \right )} A}{a^{2} d}+\frac {11 i {\mathrm e}^{i \left (d x +c \right )} C}{4 a^{2} d}-\frac {i {\mathrm e}^{-i \left (d x +c \right )} A}{a^{2} d}-\frac {11 i {\mathrm e}^{-i \left (d x +c \right )} C}{4 a^{2} d}+\frac {i {\mathrm e}^{-2 i \left (d x +c \right )} A}{8 a^{2} d}+\frac {i {\mathrm e}^{-2 i \left (d x +c \right )} C}{2 a^{2} d}-\frac {2 i \left (12 A \,{\mathrm e}^{2 i \left (d x +c \right )}+18 C \,{\mathrm e}^{2 i \left (d x +c \right )}+21 A \,{\mathrm e}^{i \left (d x +c \right )}+33 C \,{\mathrm e}^{i \left (d x +c \right )}+11 A +17 C \right )}{3 d \,a^{2} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{3}}+\frac {C \sin \left (4 d x +4 c \right )}{32 a^{2} d}-\frac {C \sin \left (3 d x +3 c \right )}{6 a^{2} d}\) | \(281\) |
norman | \(\frac {\frac {\left (28 A +55 C \right ) x}{8 a}+\frac {\left (A +C \right ) \left (\tan ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 a d}-\frac {179 \left (A +2 C \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a d}-\frac {\left (5 A +9 C \right ) \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a d}-\frac {\left (26 A +53 C \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 a d}+\frac {3 \left (28 A +55 C \right ) x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a}+\frac {15 \left (28 A +55 C \right ) x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}+\frac {5 \left (28 A +55 C \right ) x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a}+\frac {15 \left (28 A +55 C \right ) x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}+\frac {3 \left (28 A +55 C \right ) x \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a}+\frac {\left (28 A +55 C \right ) x \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 a}-\frac {\left (94 A +187 C \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 a d}-\frac {\left (219 A +436 C \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a d}-\frac {\left (454 A +921 C \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12 a d}-\frac {\left (866 A +1735 C \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12 a d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6} a}\) | \(378\) |
1/48*(-163*(1/163*(12*A+29*C)*cos(2*d*x+2*c)+1/163*(-3*A-53/8*C)*cos(3*d*x +3*c)+1/326*C*cos(4*d*x+4*c)-3/1304*C*cos(5*d*x+5*c)+(A+329/163*C)*cos(d*x +c)+140/163*A+569/326*C)*tan(1/2*d*x+1/2*c)*sec(1/2*d*x+1/2*c)^2+168*x*(A+ 55/28*C)*d)/a^2/d
Time = 0.27 (sec) , antiderivative size = 167, normalized size of antiderivative = 0.87 \[ \int \frac {\cos ^4(c+d x) \left (A+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx=\frac {3 \, {\left (28 \, A + 55 \, C\right )} d x \cos \left (d x + c\right )^{2} + 6 \, {\left (28 \, A + 55 \, C\right )} d x \cos \left (d x + c\right ) + 3 \, {\left (28 \, A + 55 \, C\right )} d x + {\left (6 \, C \cos \left (d x + c\right )^{5} - 4 \, C \cos \left (d x + c\right )^{4} + {\left (12 \, A + 19 \, C\right )} \cos \left (d x + c\right )^{3} - 6 \, {\left (4 \, A + 9 \, C\right )} \cos \left (d x + c\right )^{2} - {\left (172 \, A + 347 \, C\right )} \cos \left (d x + c\right ) - 128 \, A - 256 \, C\right )} \sin \left (d x + c\right )}{24 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} + 2 \, a^{2} d \cos \left (d x + c\right ) + a^{2} d\right )}} \]
1/24*(3*(28*A + 55*C)*d*x*cos(d*x + c)^2 + 6*(28*A + 55*C)*d*x*cos(d*x + c ) + 3*(28*A + 55*C)*d*x + (6*C*cos(d*x + c)^5 - 4*C*cos(d*x + c)^4 + (12*A + 19*C)*cos(d*x + c)^3 - 6*(4*A + 9*C)*cos(d*x + c)^2 - (172*A + 347*C)*c os(d*x + c) - 128*A - 256*C)*sin(d*x + c))/(a^2*d*cos(d*x + c)^2 + 2*a^2*d *cos(d*x + c) + a^2*d)
Leaf count of result is larger than twice the leaf count of optimal. 2161 vs. \(2 (187) = 374\).
Time = 4.24 (sec) , antiderivative size = 2161, normalized size of antiderivative = 11.31 \[ \int \frac {\cos ^4(c+d x) \left (A+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx=\text {Too large to display} \]
Piecewise((84*A*d*x*tan(c/2 + d*x/2)**8/(24*a**2*d*tan(c/2 + d*x/2)**8 + 9 6*a**2*d*tan(c/2 + d*x/2)**6 + 144*a**2*d*tan(c/2 + d*x/2)**4 + 96*a**2*d* tan(c/2 + d*x/2)**2 + 24*a**2*d) + 336*A*d*x*tan(c/2 + d*x/2)**6/(24*a**2* d*tan(c/2 + d*x/2)**8 + 96*a**2*d*tan(c/2 + d*x/2)**6 + 144*a**2*d*tan(c/2 + d*x/2)**4 + 96*a**2*d*tan(c/2 + d*x/2)**2 + 24*a**2*d) + 504*A*d*x*tan( c/2 + d*x/2)**4/(24*a**2*d*tan(c/2 + d*x/2)**8 + 96*a**2*d*tan(c/2 + d*x/2 )**6 + 144*a**2*d*tan(c/2 + d*x/2)**4 + 96*a**2*d*tan(c/2 + d*x/2)**2 + 24 *a**2*d) + 336*A*d*x*tan(c/2 + d*x/2)**2/(24*a**2*d*tan(c/2 + d*x/2)**8 + 96*a**2*d*tan(c/2 + d*x/2)**6 + 144*a**2*d*tan(c/2 + d*x/2)**4 + 96*a**2*d *tan(c/2 + d*x/2)**2 + 24*a**2*d) + 84*A*d*x/(24*a**2*d*tan(c/2 + d*x/2)** 8 + 96*a**2*d*tan(c/2 + d*x/2)**6 + 144*a**2*d*tan(c/2 + d*x/2)**4 + 96*a* *2*d*tan(c/2 + d*x/2)**2 + 24*a**2*d) + 4*A*tan(c/2 + d*x/2)**11/(24*a**2* d*tan(c/2 + d*x/2)**8 + 96*a**2*d*tan(c/2 + d*x/2)**6 + 144*a**2*d*tan(c/2 + d*x/2)**4 + 96*a**2*d*tan(c/2 + d*x/2)**2 + 24*a**2*d) - 68*A*tan(c/2 + d*x/2)**9/(24*a**2*d*tan(c/2 + d*x/2)**8 + 96*a**2*d*tan(c/2 + d*x/2)**6 + 144*a**2*d*tan(c/2 + d*x/2)**4 + 96*a**2*d*tan(c/2 + d*x/2)**2 + 24*a**2 *d) - 432*A*tan(c/2 + d*x/2)**7/(24*a**2*d*tan(c/2 + d*x/2)**8 + 96*a**2*d *tan(c/2 + d*x/2)**6 + 144*a**2*d*tan(c/2 + d*x/2)**4 + 96*a**2*d*tan(c/2 + d*x/2)**2 + 24*a**2*d) - 800*A*tan(c/2 + d*x/2)**5/(24*a**2*d*tan(c/2 + d*x/2)**8 + 96*a**2*d*tan(c/2 + d*x/2)**6 + 144*a**2*d*tan(c/2 + d*x/2)...
Leaf count of result is larger than twice the leaf count of optimal. 415 vs. \(2 (181) = 362\).
Time = 0.32 (sec) , antiderivative size = 415, normalized size of antiderivative = 2.17 \[ \int \frac {\cos ^4(c+d x) \left (A+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx=-\frac {C {\left (\frac {\frac {93 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {341 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {395 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {195 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}}{a^{2} + \frac {4 \, a^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {6 \, a^{2} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {4 \, a^{2} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {a^{2} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}}} + \frac {2 \, {\left (\frac {33 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {\sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}\right )}}{a^{2}} - \frac {165 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}}\right )} + 2 \, A {\left (\frac {6 \, {\left (\frac {3 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {5 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}\right )}}{a^{2} + \frac {2 \, a^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {a^{2} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}}} + \frac {\frac {21 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {\sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}}{a^{2}} - \frac {42 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{2}}\right )}}{12 \, d} \]
-1/12*(C*((93*sin(d*x + c)/(cos(d*x + c) + 1) + 341*sin(d*x + c)^3/(cos(d* x + c) + 1)^3 + 395*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 + 195*sin(d*x + c) ^7/(cos(d*x + c) + 1)^7)/(a^2 + 4*a^2*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 6*a^2*sin(d*x + c)^4/(cos(d*x + c) + 1)^4 + 4*a^2*sin(d*x + c)^6/(cos(d* x + c) + 1)^6 + a^2*sin(d*x + c)^8/(cos(d*x + c) + 1)^8) + 2*(33*sin(d*x + c)/(cos(d*x + c) + 1) - sin(d*x + c)^3/(cos(d*x + c) + 1)^3)/a^2 - 165*ar ctan(sin(d*x + c)/(cos(d*x + c) + 1))/a^2) + 2*A*(6*(3*sin(d*x + c)/(cos(d *x + c) + 1) + 5*sin(d*x + c)^3/(cos(d*x + c) + 1)^3)/(a^2 + 2*a^2*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + a^2*sin(d*x + c)^4/(cos(d*x + c) + 1)^4) + (21*sin(d*x + c)/(cos(d*x + c) + 1) - sin(d*x + c)^3/(cos(d*x + c) + 1)^3) /a^2 - 42*arctan(sin(d*x + c)/(cos(d*x + c) + 1))/a^2))/d
Time = 0.27 (sec) , antiderivative size = 220, normalized size of antiderivative = 1.15 \[ \int \frac {\cos ^4(c+d x) \left (A+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx=\frac {\frac {3 \, {\left (d x + c\right )} {\left (28 \, A + 55 \, C\right )}}{a^{2}} + \frac {4 \, {\left (A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + C a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 21 \, A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 33 \, C a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{a^{6}} - \frac {2 \, {\left (60 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 195 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 156 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 395 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 132 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 341 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 36 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 93 \, C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{4} a^{2}}}{24 \, d} \]
1/24*(3*(d*x + c)*(28*A + 55*C)/a^2 + 4*(A*a^4*tan(1/2*d*x + 1/2*c)^3 + C* a^4*tan(1/2*d*x + 1/2*c)^3 - 21*A*a^4*tan(1/2*d*x + 1/2*c) - 33*C*a^4*tan( 1/2*d*x + 1/2*c))/a^6 - 2*(60*A*tan(1/2*d*x + 1/2*c)^7 + 195*C*tan(1/2*d*x + 1/2*c)^7 + 156*A*tan(1/2*d*x + 1/2*c)^5 + 395*C*tan(1/2*d*x + 1/2*c)^5 + 132*A*tan(1/2*d*x + 1/2*c)^3 + 341*C*tan(1/2*d*x + 1/2*c)^3 + 36*A*tan(1 /2*d*x + 1/2*c) + 93*C*tan(1/2*d*x + 1/2*c))/((tan(1/2*d*x + 1/2*c)^2 + 1) ^4*a^2))/d
Time = 1.16 (sec) , antiderivative size = 220, normalized size of antiderivative = 1.15 \[ \int \frac {\cos ^4(c+d x) \left (A+C \cos ^2(c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx=\frac {x\,\left (28\,A+55\,C\right )}{8\,a^2}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {5\,\left (A+C\right )}{2\,a^2}+\frac {2\,A+6\,C}{2\,a^2}\right )}{d}-\frac {\left (5\,A+\frac {65\,C}{4}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\left (13\,A+\frac {395\,C}{12}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (11\,A+\frac {341\,C}{12}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (3\,A+\frac {31\,C}{4}\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left (a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+4\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+6\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+4\,a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+a^2\right )}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (A+C\right )}{6\,a^2\,d} \]
(x*(28*A + 55*C))/(8*a^2) - (tan(c/2 + (d*x)/2)*((5*(A + C))/(2*a^2) + (2* A + 6*C)/(2*a^2)))/d - (tan(c/2 + (d*x)/2)^7*(5*A + (65*C)/4) + tan(c/2 + (d*x)/2)^3*(11*A + (341*C)/12) + tan(c/2 + (d*x)/2)^5*(13*A + (395*C)/12) + tan(c/2 + (d*x)/2)*(3*A + (31*C)/4))/(d*(4*a^2*tan(c/2 + (d*x)/2)^2 + 6* a^2*tan(c/2 + (d*x)/2)^4 + 4*a^2*tan(c/2 + (d*x)/2)^6 + a^2*tan(c/2 + (d*x )/2)^8 + a^2)) + (tan(c/2 + (d*x)/2)^3*(A + C))/(6*a^2*d)